<?PHP

$e['level']=0;
$table='permissions';
$id='id';
$catch='page';
include 'h/default_process_form.php';

if(!empty($_GET['cmd']))
{
	printformheader('Permissions',$_GET['cmd']);
	begin_form($_GET['cmd'],$id);
	p_input('level',$o,$e);	
	p_input('page',$o,$e);	
	printsubmit("Save");
	end_form($_GET['cmd']);
	printformfooter(NULL,NULL,NULL,NULL,NULL);	
}


$dsetting=get_sql('permissions','id',NULL,NULL);
$hsetting[]='Name';
$hsetting[]='Value';
$hsetting[]='Category';


$hsetting[]='Action';
$ssetting[]='id';
$ssetting[]='page';
$ssetting[]='level';



$lsetting['Edit']='index.php?q=m/user/permissions.php&cmd=edit&id=';

$asetting['Delete']='a/delete_content.php';


printformheader('View Settings',$message);


p_table($hsetting,$dsetting,$lsetting,"class='itable'",$ssetting,NULL);
printformfooter("Back","index.php","Add","index.php?q=m/user/permissions.php&cmd=add",NULL,NULL);

?>